package service.impl;

import dao.TypeDao;
import dao.impl.TypeDaoImpl;
import entity.Type;
import service.TypeService;

import java.util.List;

/**
 * @version 1.0
 * @Author: xxf
 * @CreateDate: 2020/9/30 14:11
 */
public class TypeServiceImpl implements TypeService {

    private TypeDao typeDao = new TypeDaoImpl();
    /**
     * 查询所有
     * @return
     */
    @Override
    public List<Type> findAll() {
        return typeDao.selectAll();
    }
}
